<extend name="base/common"/>

<block name="body">
<!--[name]普通文章浏览模板[/name]-->
<section class="container">
<div class="content-wrap">
	<div class="content">
		<header class="article-header">
			<h1 class="article-title"><a href="#">{$article[title]}</a></h1>
			<ul class="article-meta">
				<li>{$article.author} 发布于 {$article.dateline}</li>
				<li>分类：<a href="{$article.category_id|get_category=###,'url'}" rel="category tag">{$article.category_id|get_category=###,'title'}</a></li>
				<li>
				<if condition="$article.from">
				文章来源：
                <if condition="$article.fromurl">
					<a href="{$article[fromurl]}" target="_blank">
                </if>
				{$article.from}
                <if condition="$article.fromurl">
					</a>
                </if>
                </if>
				</li>
				<li><span class="post-views">阅读({$article.viewnum})</span></li>
			</ul>
		</header>

		<article class="article-content">
			{$article.content}
		</article>

		<if condition="$multi"><div class="article-paging">{$multi}</div></if>

		<if condition="$article.tags">
		<div class="article-tags">
			标签：
			<volist name="article.tags" id="v">
			<a href="{:U('home/misc/tag', array('tag'=>$v['tagname']))}" data-original-title="" title="">{$v.tagname}</a>
			</volist>
		</div>
		</if>
		<if condition="$prev || $next">
		<nav class="article-nav">
			<if condition="$prev">
			<span class="article-nav-prev">上一篇<a href="{:U('home/article/view', array('id'=>$prev['id'], 'alias'=>$prev['shorttitle']))}">{$prev.title}</a></span>
			</if>
			<if condition="$next">
			<span class="article-nav-next">下一篇<a href="{:U('home/article/view', array('id'=>$next['id'], 'alias'=>$next['shorttitle']))}">{$next.title}</a></span>
			</if>
		</nav>
		</if>

		<if condition="$article.related">
		<div class="relates">
			<h3 class="title"><strong>相关推荐</strong></h3>
			<ul>
				<volist name="article.related" id="row"><li><a href="{:U('home/article/view', array('id'=>$row['id'], 'alias'=>$row['shorttitle']))}"><span><img data-original="{$row[pic]}" class="thumb" src="__IMG__/thumbnail.png"></span>{$row.title}</a></li></volist>
			</ul>
		</div>
		</if>
	</div>
</div>
<include file="base/sidebar" />
</section>


</block>
